import dva from 'dva';
import './assets/index.css';
import {createHashHistory} from 'history'
import createLoading from 'dva-loading'
// 1. Initialize
const app = dva({
  history: createHashHistory(),
  ...createLoading({effects: true}),
});

// 2. Plugins
// app.use({});

// 3. Model
// app.model(require('./models/example').default);

// 4. Router
app.router(require('./routes/router').default);

// 5. Start
app.start('#root');
